<%@ page language="java" pageEncoding="UTF-8"%>
<%
	String cpath = request.getContextPath();
	request.setAttribute("cpath", cpath);
%>
<link href="${cpath}/admin/images/skin.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${cpath}/admin/css/validationEngine.jquery.css" type="text/css" media="screen" title="no title"/>
<script src="${cpath}/admin/js/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${cpath}/admin/js/jquery.validationEngine.js" type="text/javascript"></script>
<script src="${cpath}/admin/js/jquery.validationEngine-cn.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<script>
	$(document).ready(function() { 
		$("#formv").validationEngine({
			promptPosition: "topRight", // OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft,  centerRight, bottomRight 
			success :  false
		}) 
	});
</script>	
  <body>
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="17" valign="top" background="${cpath}/admin/images/mail_leftbg.gif">
      	<img src="${cpath}/admin/images/left-top-right.gif" width="17" height="29" />
      </td>
      <td valign="top" background="${cpath}/admin/images/content-bg.gif">
      	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        	<tr>
          		<td height="31"><div class="titlebt">新建用户</div></td>
        	</tr>
      	</table>
      </td>
      <td width="16" valign="top" background="${cpath}/admin/images/mail_rightbg.gif">
      	<img src="${cpath}/admin/images/nav-right-bg.gif" width="16" height="29" />
      </td>
    </tr>
    
    <tr>
      <td valign="middle" background="${cpath}/admin/images/mail_leftbg.gif">&nbsp;</td>
      
      <td valign="top" bgcolor="#F7F8F9">
		<form id="formv" method="POST" action="userMagaddUserAction">
      		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="30" colspan="4">&nbsp;</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">用户账号</td>
                <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                <td width="32%" height="30" bgcolor="#f2f2f2">
                	<input type="text" name="user.name" id="name" size="30"  class="validate[required,ajax[ajaxName]] text-input" />
                </td>
                <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">用户账号输入,必填</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">用户密码</td>
                <td>&nbsp;</td>
                <td height="30"><input type="password" name="user.password" id="password" size="30"  class="validate[required,length[6,11]] text-input"/></td>
                <td height="30" class="left_txt">输入用户密码，必填</td>
              </tr>
              <tr>
                <td height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">确认密码</td>
                <td bgcolor="#f2f2f2">&nbsp;</td>
                <td height="30" bgcolor="#f2f2f2"><input type="password" name="renewpassword" id="renewpassword" size="30" class="validate[required,confirm[password]] text-input"/></td>
                <td height="30" bgcolor="#f2f2f2" class="left_txt">确认用户密码，必填</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">E-mail</td>
                <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                <td width="32%" height="30" bgcolor="#f2f2f2">
                	<input type="text" name="user.email" id="email" size="30"  class="validate[required,custom[email]]" />
                </td>
                <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">E-mail格式如：test@163.com</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right" bgcolor="#f2f2f2" class="left_txt2">是否禁用</td>
                <td width="3%" bgcolor="#f2f2f2">&nbsp;</td>
                <td width="32%" height="30" bgcolor="#f2f2f2">
                	<select name="user.isdisable" id="user.isdisable">
						<option value="1">启用</option>
						<option value="0">禁用</option>
					</select>
                </td>
                <td width="45%" height="30" bgcolor="#f2f2f2" class="left_txt">用户是否有后台权限</td>
              </tr>
              <tr>
                <td height="30" align="right">
                	<input type="submit"  value="确定" />
                </td>
                <td>&nbsp;</td>
                <td align="center">
                	<input type="button"  value="返回" onclick="history.back();"/>
                </td>
                <td>&nbsp;</td>
              </tr>
      		</table>
      	</form>
      </td>
      
      <td background="${cpath}/admin/images/mail_rightbg.gif">&nbsp;</td>
    </tr>
    
    
    <tr>
      <td valign="bottom" background="${cpath}/admin/images/mail_leftbg.gif"><img src="${cpath}/admin/images/buttom_left2.gif" width="17" height="17" /></td>
      <td background="${cpath}/admin/images/buttom_bgs.gif"><img src="${cpath}/admin/images/buttom_bgs.gif" width="17" height="17"></td>
      <td valign="bottom" background="${cpath}/admin/images/mail_rightbg.gif"><img src="${cpath}/admin/images/buttom_right2.gif" width="16" height="17" /></td>
    </tr>
  </table>
</body>
